import { livestoreDevtoolsPlugin } from '@livestore/devtools-vite'
import { defineConfig } from 'vite'

export default defineConfig({
  root: import.meta.dirname,
  server: {
    host: '127.0.0.1',
    fs: { strict: false },
  },
  optimizeDeps: {
    exclude: ['@livestore/wa-sqlite'],
  },
  plugins: [
    livestoreDevtoolsPlugin({
      schemaPath: './schema.ts',
    }),
  ],
})
